//
//  View2.m
//  AllSpark
//
//  Created by manchester on 2/27/14.
//  Copyright (c) 2014 Autobots. All rights reserved.
//

#import "View2.h"

@interface View2 ()

@end

@implementation View2

@synthesize sliderLabel;

-(IBAction) sliderChanged:(id)sender {
	UISlider *slider = (UISlider *)sender;
	int progressAsInt = lroundf(slider.value);
	NSString *newText;
	if (progressAsInt==1) {
		newText = @"None";
	}
	else if (progressAsInt==2){
		newText = @"Pool";
	}
	else{
		newText = @"Riffle";
	}
	[slider setValue: progressAsInt animated:YES];
	FirstLabel.text=newText;
//	[newText release];
}

-(IBAction)Button:(id)sender{
    
    FirstLabel.text = [NSString stringWithFormat:@"Hello World!"];
    
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
//	[super sliderLabel release];
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
